﻿<location:WorkflowBase
    xmlns:location="clr-namespace:WorkflowDesigner.Workflow"
    x:Class="WorkflowDesigner.Workflow.Item.FlowNormal"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="400" Height="300">
    <Canvas Name="LayoutRoot">
        <!-- 标准外框 -->
        <Rectangle Name="sNode" 
                   RadiusX="10.0"
                   RadiusY="10.0"
                   StrokeThickness="2.0"
                   IsHitTestVisible="True"></Rectangle>
        <!-- 阴影外框，专门提供阴影效果 -->
        <Rectangle Name="sNodeShadow"
                   RadiusX="10.0"
                   RadiusY="10.0"
                   IsHitTestVisible="True"></Rectangle>
        <!-- 中心的灰色小圈圈，供连线用 -->
        <Ellipse Name="sNodeCenter"
                 StrokeThickness="1.0"
                 Stroke="Black"
                 Fill="Black"
                 IsHitTestVisible="True"
                 Opacity="0.2"
                 Width="15.0"
                 Height="15.0"
                 MouseLeftButtonDown="Center_OnMouseLeftButtonDown"
                 MouseLeftButtonUp="Center_OnMouseLeftButtonUp"
                 MouseMove="Center_OnMouseMove"/>
        <!-- 文本标签 -->
        <TextBlock Name="txtLable"
                   VerticalAlignment="Center"
                   HorizontalAlignment="Center"
                   TextAlignment="Center"
                   TextWrapping="Wrap"
                   FontSize="12.0"
                   Text="未命名的活动"></TextBlock>
    </Canvas>
</location:WorkflowBase>
